package com.gc.server.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Mar 12 15:17:52 CST 2020
 */
@Getter
public enum TodoStatusEnum {


    TODO(0, "待完成"),

    WAIT(1, "待审核"),


    SCORE(2, "已评分"),

    DEL(3, "已删除"),

    PRE(4, "待评分");




    int index;
    String value;

    TodoStatusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return TodoStatusEnum.values()[idx].getValue();
    }

}
